package com.example.pet.controller;

import com.example.pet.entity.Supply;
import com.example.pet.service.SupplyService;
import io.swagger.annotations.Api;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;
import java.util.Random;


@RestController
@Api(value = "supply", tags = "商品接口")
@RequestMapping("/supply")
public class SupplyController {
    /**
     * 服务对象
     */
    @Resource
    private SupplyService supplyService;

    @GetMapping("/all")
    public Object getAll() {
        return supplyService.queryAll();

    }
}
